package com.sun.apply;

import java.util.regex.Pattern;

public class EmpnoReg {
    public static void main(String[] args) {
        String empnoReg = "[\\w]{1,10}";
        String empno = "17915000400";
        Pattern compile = Pattern.compile(empnoReg);
        boolean matches = compile.matcher(empno).matches();
        System.out.println(matches);
    }
}
